<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // let arr = '我爱我家'.split('').reverse().join('')
    // console.log(arr)

    // let result = 'hello world'.includes('')
    // let string = 'hello world'
    // let result = string.startsWith('world', 6)
    // let result = string.endsWith('hello', 5)
    // console.log(result)

    // let x = 'hello'
    // let y = 'world'
    // let z = '!!!'
    // let result = x + y + z
    // let result = [x, y, z].join('')
    // console.log(result)

    // let result = 'hello' + 'world' + '!!!'
    // console.log(result)

    // let str = '<ul>'
    // str += '<li>item1</li>'
    // str += '<li>item2</li>'
    // str += '</ul>'
    let str = `
      <ul>
        <li>item1</li>
        <li>item2</li>
      </ul>
    `
    console.log(str)
    document.querySelector('body').innerHTML = str
  </script>
</body>
</html>